package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-05-22
 * Time: 13:08
 */
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "大黄";
        System.out.println(dog.name);
        dog.age = 3;
        System.out.println(dog.age);
        dog.bark();
        dog.eat();

        System.out.println("---------------");
        Cat cat = new Cat();
        cat.name = "小白";
        System.out.println(cat.name);
        cat.age = 2;
        System.out.println(cat.age);
        cat.mimi();
        cat.eat();
    }
}
